<?php
// 	if(isset($_COOKIE['user_id']) && is_numeric($_COOKIE['user_id']) && isset($_COOKIE['pass_hash']) && $_COOKIE['pass_hash'] != "")
// 	{
// 		$user = new CustomerManager();
// 		if(!$user->check_log())
// 		{
// 			setcookie("customer_uid","",time()-60*60*24*365);
// 			setcookie("customer_key","",time()-60*60*24*365);
// 		}
// 	}
	session_start();
	if(isset($_SESSION['username']) && isset($_SESSION['password'])){
		global $db;
		$user=mysqli_real_escape_string($db,$_SESSION['username']);
		$pass=mysqli_real_escape_string($db,$_SESSION['password']);
		
	}else {
		header("Location: index.php?page=admin");
	}
